﻿<fetch>
  <entity schema="Core" name="Entity" alias="T0" >
    <attribute alias="T0" name="Campo1" />
    <attribute alias="T0" name="Campo2" />
    <attribute alias="T0" name="Campo3" />
    <attribute alias="T0" name="Campo4" />
    <attribute alias="T0" name="Campo5" />
    <attribute alias="T0" name="Campo6" />
    <attribute alias="T0" name="Campo7" />
    <attribute alias="T0" name="Campo8" />
    <linkentity joinoperator="INNER" schema="Core" entity="Tabla1" alias="T1" >
      <filter logical-operator="And" >
        <condition attribute="T0.Campo1" condition-operator="=" value="T1.Campo1" logical-operator="And" />
        <condition attribute="T1.Campo3" condition-operator="=" value="T0.Campo3" logical-operator="And" />
        <condition attribute="T1.Campo4" condition-operator=""<>" value="3" logical-operator="And" />
      </filter>
    </linkentity>
    <filter logical-operator="And" >
      <condition attribute="T0.Campo1" condition-operator="=" value="1" logical-operator="And" />
      <condition attribute="T0.Campo2" condition-operator="=" value="dfadsf" logical-operator="And" />
      <filter logical-operator="And" >
        <condition attribute="T0.Campo3" condition-operator="=" value="3" logical-operator="Or" />
        <condition attribute="T0.Campo4" condition-operator="=" value="3" logical-operator="And" />
      </filter>
    </filter>
    <groupby>
      <attribute alias="T0" name="Campo3">
</groupby>
    <orderby>
      <order alias="T0" name="Campo3" type="ASC" />
    </orderby>
  </entity>
</fetch>